package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

public class StreamAdress implements Parcelable {
    /**
     * id : 186
     * name : 上海分场
     * title : 开奖直播
     * pushUrl : rtmp://pili-publish.127.i2863.com/i2863-127/live_127_506955?e=2151331200&token=kVbDgTY1bCEELKfIWKm3UsqS0wKg-4IyY_Xxgy88:ayaNHBwP9ahOCm8Z_3tc3SAl4KA=
     * hlsUrl : http://pili-live-hls.127.i2863.com/i2863-127/live_127_506955.m3u8
     * rtmpUrl : rtmp://pili-live-rtmp.127.i2863.com/i2863-127/live_127_506955
     * creator : 13980974244
     * createTime : 2018-06-28 10:50:37
     * sceneId : 546
     * qrcodePushUrl : http://vod.127.i2863.com/live_127_506955_qrcode.jpg
     * streamAddressName : live_127_506955
     * isDel : 0
     * isMain : 1
     * playBackStarttime : 2018-06-28 14:00:35
     * playBackEndtime : 2018-06-28 17:16:37
     * playbackUrl : http://vod.127.i2863.com/recordings/z1.i2863-127.live_127_506955/1530165635_1530177397.mp4
     * clickNumber : 0
     * encodeHlsUrl : aHR0cDovL3BpbGktbGl2ZS1obHMuMTI3LmkyODYzLmNvbS9pMjg2My0xMjcvbGl2ZV8xMjdfNTA2
     * OTU1Lm0zdTg/c2lnbj1jZGZkM2NmNDlhOTBhMzJhMTE5N2NjMWEwNDcwY2U3ZCZ0PTViNDNiOTYy
     * <p>
     * encodePlayBackUrl : aHR0cDovL3ZvZC4xMjcuaTI4NjMuY29tL3JlY29yZGluZ3MvejEuaTI4NjMtMTI3LmxpdmVfMTI3
     * XzUwNjk1NS8xNTMwMTY1NjM1XzE1MzAxNzczOTcubXA0
     */

    private int id;
    private String name;
    private String title;
    private String pushUrl;
    private String hlsUrl;
    private String rtmpUrl;
    private String creator;
    private String createTime;
    private int sceneId;
    private String qrcodePushUrl;
    private String streamAddressName;
    private int isDel;
    private int isMain;
    private String playBackStarttime;
    private String playBackEndtime;
    private String playbackUrl;
    private int clickNumber;
    private String encodeHlsUrl;
    private String encodePlayBackUrl;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPushUrl() {
        return pushUrl;
    }

    public void setPushUrl(String pushUrl) {
        this.pushUrl = pushUrl;
    }

    public String getHlsUrl() {
        return hlsUrl;
    }

    public void setHlsUrl(String hlsUrl) {
        this.hlsUrl = hlsUrl;
    }

    public String getRtmpUrl() {
        return rtmpUrl;
    }

    public void setRtmpUrl(String rtmpUrl) {
        this.rtmpUrl = rtmpUrl;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getSceneId() {
        return sceneId;
    }

    public void setSceneId(int sceneId) {
        this.sceneId = sceneId;
    }

    public String getQrcodePushUrl() {
        return qrcodePushUrl;
    }

    public void setQrcodePushUrl(String qrcodePushUrl) {
        this.qrcodePushUrl = qrcodePushUrl;
    }

    public String getStreamAddressName() {
        return streamAddressName;
    }

    public void setStreamAddressName(String streamAddressName) {
        this.streamAddressName = streamAddressName;
    }

    public int getIsDel() {
        return isDel;
    }

    public void setIsDel(int isDel) {
        this.isDel = isDel;
    }

    public int getIsMain() {
        return isMain;
    }

    public void setIsMain(int isMain) {
        this.isMain = isMain;
    }

    public String getPlayBackStarttime() {
        return playBackStarttime;
    }

    public void setPlayBackStarttime(String playBackStarttime) {
        this.playBackStarttime = playBackStarttime;
    }

    public String getPlayBackEndtime() {
        return playBackEndtime;
    }

    public void setPlayBackEndtime(String playBackEndtime) {
        this.playBackEndtime = playBackEndtime;
    }

    public String getPlaybackUrl() {
        return playbackUrl;
    }

    public void setPlaybackUrl(String playbackUrl) {
        this.playbackUrl = playbackUrl;
    }

    public int getClickNumber() {
        return clickNumber;
    }

    public void setClickNumber(int clickNumber) {
        this.clickNumber = clickNumber;
    }

    public String getEncodeHlsUrl() {
        return encodeHlsUrl;
    }

    public void setEncodeHlsUrl(String encodeHlsUrl) {
        this.encodeHlsUrl = encodeHlsUrl;
    }

    public String getEncodePlayBackUrl() {
        return encodePlayBackUrl;
    }

    public void setEncodePlayBackUrl(String encodePlayBackUrl) {
        this.encodePlayBackUrl = encodePlayBackUrl;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeString(this.name);
        dest.writeString(this.title);
        dest.writeString(this.pushUrl);
        dest.writeString(this.hlsUrl);
        dest.writeString(this.rtmpUrl);
        dest.writeString(this.creator);
        dest.writeString(this.createTime);
        dest.writeValue(this.sceneId);
        dest.writeString(this.qrcodePushUrl);
        dest.writeString(this.streamAddressName);
        dest.writeValue(this.isDel);
        dest.writeValue(this.isMain);
        dest.writeString(this.playBackStarttime);
        dest.writeString(this.playBackEndtime);
        dest.writeString(this.playbackUrl);
        dest.writeValue(this.clickNumber);
        dest.writeString(this.encodeHlsUrl);
        dest.writeString(this.encodePlayBackUrl);
    }

    protected StreamAdress(Parcel in) {
        this.id = (Integer) in.readValue(Integer.class.getClassLoader());
        this.name = in.readString();
        this.title = in.readString();
        this.pushUrl = in.readString();
        this.hlsUrl = in.readString();
        this.rtmpUrl = in.readString();
        this.creator = in.readString();
        this.createTime = in.readString();
        this.sceneId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.qrcodePushUrl = in.readString();
        this.streamAddressName = in.readString();
        this.isDel = (Integer) in.readValue(Integer.class.getClassLoader());
        this.isMain = (Integer) in.readValue(Integer.class.getClassLoader());
        this.playBackStarttime = in.readString();
        this.playBackEndtime = in.readString();
        this.playbackUrl = in.readString();
        this.clickNumber = (Integer) in.readValue(Integer.class.getClassLoader());
        this.encodeHlsUrl = in.readString();
        this.encodePlayBackUrl = in.readString();
    }

    public static final Creator<StreamAdress> CREATOR = new Creator<StreamAdress>() {
        @Override
        public StreamAdress createFromParcel(Parcel source) {
            return new StreamAdress(source);
        }

        @Override
        public StreamAdress[] newArray(int size) {
            return new StreamAdress[size];
        }
    };
}
